home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1242 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  1.2 KB  |  39 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 1 && _root.range == true)
  5.       {
  6.          if(_root.even18 == 0)
  7.          {
  8.             play();
  9.             _root.next_dis1 = 2;
  10.             _root.next_txt1 = "One day IΓÇÖm going to catch that toad!";
  11.          }
  12.          else if(_root.txt_number <= 1)
  13.          {
  14.             _root.even18 = 2;
  15.             _root.take = 35;
  16.             _root.sfx.gotoAndStop(3);
  17.             _root.next_dis1 = 2;
  18.             _root.next_txt1 = "Yes I\'ve finally caught him!";
  19.          }
  20.       }
  21.       if(_root.micon._currentframe == 43 && _root.range == true)
  22.       {
  23.          _root.sfx.gotoAndStop(3);
  24.          _root.micon.gotoAndStop(44);
  25.          _root.even18 = 1;
  26.          _root.txt_number = 2;
  27.          _root.next_dis2 = 2;
  28.          _root.next_txt2 = "Hmm that\'s strange.  This one fly stayed in the jar.  What a smart bug.";
  29.          _root.next_dis1 = 2;
  30.          _root.next_txt1 = "I shall name him Tedward.";
  31.       }
  32.       if(_root.micon._currentframe == 2)
  33.       {
  34.          _root.next_dis1 = 2;
  35.          _root.next_txt1 = "ThatΓÇÖs Wally the Wart Toad.  I think heΓÇÖs been here longer than I have.";
  36.       }
  37.    }
  38. }
  39.